//
//  UIMenuController+Associate.m
//  HDesign
//
//  Created by admin on 6/23/14.
//  Copyright (c) 2014 admin. All rights reserved.
//

#import "UIMenuController+Associate.h"
#import <objc/runtime.h>

static const char nametag_key; // Thanks Oliver Drobnik
@implementation UIMenuController (Associate)
#pragma mark Associations
- (id) nametag
{
    return objc_getAssociatedObject(self, (void *) &nametag_key);
}

- (void)setNametag:(NSString *) theNametag
{
    objc_setAssociatedObject(self, (void *) &nametag_key, theNametag, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}


@end
